import ajax from "./ajax/axios";

export default {
  list: function(data) {
    return ajax({
      url: "/staff/list",
      method: "post",
      data: data
    });
  },
  add: function(data) {
    return ajax({
      url: "/staff/add",
      method: "post",
      data: data
    });
  },
  update: function(data) {
    return ajax({
      url: "/staff/update/",
      method: "post",
      data: data
    });
  },
  repasswd: function(id, data) {
    return ajax({
      url: "/staff/repasswd/" + id,
      method: "post",
      data: data
    });
  },
  info: function(id) {
    return ajax({
      url: "/staff/info/" + id,
      method: "get"
    });
  },
  remove: function(id) {
    return ajax({
      url: "/staff/remove/" + id,
      method: "get"
    });
  },
  options: function() {
    return ajax({
      url: "/staff/options/",
      method: "get"
    });
  }
};
